package com.markerhub;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.markerhub.netty.WebSocketServer;
import org.springframework.boot.web.servlet.ServletComponentScan;

@ServletComponentScan("com.markerhub.filter.CrossSeting")
@SpringBootApplication(scanBasePackages = "com.markerhub")
public class VueblogApplication implements CommandLineRunner {

    @Autowired
    WebSocketServer webSocketServer;

    public static void main(String[] args) {
        SpringApplication.run(VueblogApplication.class, args);
    }
    @Override
    public void run(String... args) throws Exception { webSocketServer.run();
    }

}
